#define _CRT_SECURE_NO_WARNINGS 1
//#include <stdio.h>
////struct S
////{
////    float a;
////    float b;
////    float c;
////    float d;
////    float e;
////};
////int main()
////{
////    struct S score[5] = { 0 };
////    float sum[5] = { 0 };
////    int i = 0;
////    for (i = 0; i < 5; i++)
////    {
////        scanf("%f%f%f%f%f", &(score[i].a), &(score[i].b), &(score[i].c), &(score[i].d), &(score[i].e));
////        sum[i] = score[i].a + score[i].b + score[i].c + score[i].d + score[i].e;
////    }
////    for (i = 0; i < 5; i++)
////    {
////        printf("%.1f %.1f %.1f %.1f %.1f %.1f\n", score[i].a, score[i].b, score[i].c, score[i].d, score[i].e, sum[i]);
////    }
////    return 0;
////}
////int main() {
////    int i;
////    while ((scanf("%d", &i)) != EOF) {
////        for (int j = 0; j < i; j++) {
////            printf("*");
////            if (j == i - 1)
////                printf("\n");
////        }
////    }
////    return 0;
//}
//int main()
//{
//    int second = 0;
//    int minute = 0;
//    int hour = 0;
//    scanf("%d", &second);
//    hour = second / 3600;
//    minute = (second % 3600) / 60;
//    second = second - 3600 * hour - 60 * minute;
//    printf("%d %d %d\n", hour, minute, second);
//    return 0;
}
#include <stdio.h>

int main() {
    float t = 0;
    while ((scanf("%f\n", &t)) != EOF) {
        if (t > 0) {
            printf("1\n");
        }
        else if (t == 0) {
            printf("0.5\n");
        }
        else {
            printf("0\n");
        }
    }
    return 0;
}